package com.async.designpatterns.behavior.command;

/**
 * Created by wenzhuo on 2018/1/1.
 * 自定义命令
 */
public class MyCommand implements Command {

    private Receiver receiver;

    public MyCommand(Receiver receiver){
        this.receiver = receiver;
    }

    @Override
    public void exe() {
        receiver.action();
    }
}
